package com.aiolos.mp.dao;

import com.aiolos.mp.entity.MpUser;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper extends BaseMapper<MpUser> {

    List<MpUser> selectAll(@Param(Constants.WRAPPER) Wrapper<MpUser> wrapper);

    //返回IPage对象，第一个参数必须是Page对象
    IPage<MpUser> selectUserPage(Page<MpUser> page, @Param(Constants.WRAPPER) Wrapper<MpUser> wrapper);

}
